#
# HoI - Japan Events
#
#		written by Henrik Fhraeus
#
#
#########################################################################
# Removed and replaced by US and Japanese trade events
#  US Oil Embargo
#########################################################################
#event = { 
#	id = 3800
#	random = no
#	country = JAP
#	
#	# Triggered by USA 3701
#	
#	name = "EVT_3800_NAME"
#	desc = "EVT_3800_DESC"
#	style = 0
#	
#	action_a = {
#		name = "OK" # A very bad thing this is
#		command = { type = oilpool value = -10000 }
#	}
#}
#########################################################################
#  The USA Assassinates Admiral Isoroku Yamamoto
#########################################################################
event = { 
	id = 3801
	random = no
	country = JAP
	
	# Triggered by USA 3704
	
	name = "EVT_3801_NAME"
	desc = "EVT_3801_DESC"
	style = 0
	
	action_a = {
		name = "OK" # A very, very bad thing this is
		command = { type = sleepleader which = 101243 }
	}
}



#########################################################################
# Japan puts Pressure on Siam (Axis Japan)
#########################################################################
event = { 
	id = 3806
	random = no
	country = JAP
	
	trigger = {
		alliance = { country = JAP country = GER }
		exists = VIC
		exists = SIA
		event = 3802
		NOT = {
			alliance = { country = SIA country = GER }
			}
		NOT = {
			OR = {
				war = { country = JAP country = SIA }				
				war = { country = GER country = SIA }
				}
			}
	}
	
	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }
	
	name = "EVT_3806_NAME"
	desc = "EVT_3806_DESC"
	style = 0
	
	action_a = {
		name = "ACTIONNAME3806A" # Lean on Siam
		command = { type = trigger which = 4500 } # Siam/Thailand
		command = { type = sleepevent which = 3807 }
	}
	action_b = {
		name = "ACTIONNAME3806B" # Siam is Unimportant
		command = { type = sleepevent which = 3807 }
	}
}
#########################################################################
# Japan puts Pressure on Siam ("Neutral" Japan)
#########################################################################
event = { 
	id = 3807
	random = no
	country = JAP
	
	trigger = {
		NOT = {
			OR = {
				alliance = { country = JAP country = GER }
				alliance = { country = JAP country = ENG }
			}
		}
		war = { country = JAP country = ENG }
		NOT = {
			OR = {
				alliance = { country = SIA country = GER }
				war = { country = JAP country = SIA }				
				war = { country = GER country = SIA }
				}
			}
		exists = VIC
		exists = SIA
		event = 3802
	}
	
	name = "EVT_3807_NAME"
	desc = "EVT_3807_DESC"
	style = 0
	
	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1947 }
	
	action_a = {
		name = "ACTIONNAME3807A" # Lean on Siam
		command = { type = trigger which = 4501 } # Siam/Thailand
		command = { type = sleepevent which = 3806 }
	}
	action_b = {
		name = "ACTIONNAME3807B" # Siam is Unimportant
		command = { type = sleepevent which = 3806 }
	}
}
#########################################################################
# Siam Accepts
#########################################################################
event = { 
	id = 3808
	random = no
	country = JAP
	
	# Triggered by SIA 4500 or 4501
	
	name = "EVT_3808_NAME"
	desc = "EVT_3808_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Excellent!
		command = { type = influence value = 10 }
	}
}
#########################################################################
# Siam Refuses
#########################################################################
event = { 
	id = 3809
	random = no
	country = JAP
	
	# Triggered by SIA 4500 or 4501
	
	name = "EVT_3809_NAME"
	desc = "EVT_3809_DESC"
	style = 0
	
	action_a = {
		name = "ACTIONNAME3809A" # Declare War!
		command = { type = war which = SIA }
	}
	action_b = {
		name = "ACTIONNAME3809B" # Their Loss!
		command = { type = influence value = -10 }
	}
}


#########################################################################
#  Japan demands bases in Northern French Indochina (Neutral Japan) (modified by OHGamer)
#########################################################################
event = { 
	id = 3803
	random = no
	country = JAP
	
	date = { day = 1 month = january year = 1939 }
	offset = 3
	deathdate = { day = 30 month = december year = 1947 }

	trigger = {
		control = { province = 1603 data = VIC } # Vichy controls Indochine and Madagascar
		control = { province = 1604 data = VIC }
		control = { province = 1607 data = VIC }
		control = { province = 1608 data = VIC } 
		control = { province = 1727 data = VIC }
		control = { province = 1728 data = VIC }
		control = { province = 1730 data = VIC }
		control = { province = 1731 data = VIC }
		control = { province = 1732 data = VIC }
		control = { province = 1734 data = VIC }
		control = { province = 1735 data = VIC }
		control = { province = 1736 data = VIC }
		control = { province = 1739 data = VIC }
		control = { province = 1319 data = VIC }
		control = { province = 1322 data = VIC }


		NOT = {
			OR = {
				alliance = { country = JAP country = ENG }
				alliance = { country = JAP country = GER }
			}
		}
	}
	
	name = "Japan Demands Access To Northern French Indochina"
	desc = "Engaged in its struggle with Nationalist China, Japan saw the collapse of France in 1940 as an opportunity to gain influence in Indochina, both as a stepping-stone in their goal of conquering Southeast Asia and cut the flow of supplies to Chiang Kai-Shek from outside China."
	style = 0
	
	action_a = {
		name = "Demand Bases in Northern French Indochina" # Demand Airbases in Northern French Indochina
		command = { type = trigger which = 4000 }
		command = { type = trigger which = 3707 } # USA - war entry raised
	}
	action_b = {
		name = "Demand Control of French Indochina" # Demand French Indochine
		command = { type = trigger which = 4001 }
		command = { type = trigger which = 3708 } # USA - war entry raised more
	}
	action_c = {
		name = "Demand Control of French Indochina and Madagascar" # Demand French Indochine and Madagascar
		command = { type = trigger which = 4002 }
		command = { type = trigger which = 3708 } # USA - war entry raised more
	}
}

#########################################################################
#  Japan demands bases in Northern French Indochina (Axis Japan) (modified by OHGamer)
#########################################################################
event = { 
	id = 3850
	random = no
	country = JAP
		
	date = { day = 1 month = january year = 1939 }
	offset = 3
	deathdate = { day = 30 month = december year = 1947 }

	trigger = {
		control = { province = 1603 data = VIC } # Vichy controls Indochine and Madagascar
		control = { province = 1604 data = VIC }
		control = { province = 1607 data = VIC }
		control = { province = 1608 data = VIC } 
		control = { province = 1727 data = VIC }
		control = { province = 1728 data = VIC }
		control = { province = 1730 data = VIC }
		control = { province = 1731 data = VIC }
		control = { province = 1732 data = VIC }
		control = { province = 1734 data = VIC }
		control = { province = 1735 data = VIC }
		control = { province = 1736 data = VIC }
		control = { province = 1739 data = VIC }		
		control = { province = 1319 data = VIC }
		control = { province = 1322 data = VIC }
		alliance = { country = JAP country = GER }
		NOT = {
			alliance = { country = JAP country = ENG }
		    }
	}
	
	name = "Japan Demands Access To Northern French Indochina"
	desc = "Engaged in its struggle with Nationalist China, Japan saw the collapse of France in 1940 as an opportunity to gain influence in Indochina, both as a stepping-stone in their goal of conquering Southeast Asia and cut the flow of supplies to Chiang Kai-Shek from outside China."
	style = 0

	action_a = {
		name = "Demand Airbases in Northern French Indochina" # Demand Airbases in Northern French Indochina
		command = { type = trigger which = 4000 }
		command = { type = trigger which = 3707 } # USA - war entry raised more
	}
	action_b = {
		name = "Demand Control of French Indochina" # Demand French Indochine
		command = { type = trigger which = 4001 }
		command = { type = trigger which = 3708 } # USA - war entry raised
	}
	action_c = {
		name = "Demand Control of French Indochina and Madagascar" # Demand French Indochine and Madagascar
		command = { type = trigger which = 4002 }
		command = { type = trigger which = 3708 } # USA - war entry raised more
	}
}

#########################################################################
#  Vichy accepts our demands (modified by OHGamer)
#########################################################################
event = { 
	id = 3804
	random = no
	country = JAP
	
	# Triggered by VIC 4000, 4001 or 4002
	
	name = "Vichy Grants Access To Japan in Northern Indochina"
	desc = "Vichy France decided in the summer of 1940 to grant Japan access to bases in French Indochina"
	style = 0
	
	action_a = {
		name = "Create garrisons in Indochina and establish convoys" # Very Good!
		command = { type = add_division which = militia when = 1608 } # militia div
		command = { type = add_division which = militia when = 1608 } # militia div
		command = { type = add_division which = motorized when = 1608 } # militia div
		command = { type = add_division which = militia when = 1727 } # militia div
		command = { type = add_division which = militia when = 1727 } # militia div
		command = { type = convoy which = 1822 value = 1727 when = 1 }
		command = { type = convoy which = 1822 value = 1727 when = 1 }
		command = { type = convoy which = 1822 value = 1727 when = 16 }
		command = { type = convoy which = 1822 value = 1727 when = 16 }
		command = { type = manpowerpool value = -10 }
	}
	action_b = {
		name = "Only convoys are needed" # Very Good!
		command = { type = convoy which = 1822 value = 1727 when = 1 }
		command = { type = convoy which = 1822 value = 1727 when = 1 }
		command = { type = convoy which = 1822 value = 1727 when = 16 }
		command = { type = convoy which = 1822 value = 1727 when = 16 }
	}
}

#########################################################################
#  Vichy refuses our demands 
#########################################################################
event = { 
	id = 3805
	random = no
	country = JAP
	
	# Triggered by VIC 4000, 4001 or 4002
	
	name = "EVT_3805_NAME"
	desc = "EVT_3805_DESC"
	style = 0
	
	action_a = {
		name = "OK" # Curses!
		command = { type = influence value = -3 }
		command = { type = dissent value = 3 }
	}
}